package com.qf.entity;

import java.util.Date;

/**
 * @author 徐老板
 * @date 2020/3/26   9:01
 */
public class Bills {

    private int id;
    private String title;
    private Date billTime;
    private String typeId;
    private double price;
    private String explain;
    //两张表的关系通过属性来添加
    private BillType billsType;

    @Override
    public String toString() {
        return "Bills{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", billTime=" + billTime +
                ", typeId='" + typeId + '\'' +
                ", price=" + price +
                ", explain='" + explain + '\'' +
                ", billsType=" + billsType +
                '}';
    }

    public Bills() {
    }

    public Bills(int id, String title, Date billTime, String typeId, double price, String explain, BillType billsType) {
        this.id = id;
        this.title = title;
        this.billTime = billTime;
        this.typeId = typeId;
        this.price = price;
        this.explain = explain;
        this.billsType = billsType;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getBillTime() {
        return billTime;
    }

    public void setBillTime(Date billTime) {
        this.billTime = billTime;
    }

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getExplain() {
        return explain;
    }

    public void setExplain(String explain) {
        this.explain = explain;
    }

    public BillType getBillsType() {
        return billsType;
    }

    public void setBillsType(BillType billsType) {
        this.billsType = billsType;
    }
}
